package com.deer.wms.base.system.service.bill.impl;

import com.deer.wms.base.system.dao.bill.BillInSapDetailMapper;
import com.deer.wms.base.system.model.bill.BillInSapDetail;
import com.deer.wms.base.system.model.bill.BillInSapDetailCriteria;
import com.deer.wms.base.system.service.bill.BillInSapDetailService;
import com.deer.wms.base.system.webservice.client.MM101SendSAPDto;
import com.deer.wms.common.core.service.AbstractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 李帅辰
 * @date 2021/6/21 22:35
 */
@Service
public class BillInSapDetailServiceImpl extends AbstractService<BillInSapDetail, Integer> implements BillInSapDetailService {

    @Autowired
    private BillInSapDetailMapper billInSapDetailMapper;

    @Override
    public List<BillInSapDetail> billInOkSendToSAP() {
        return billInSapDetailMapper.billInOkSendToSAP();
    }

    @Override
    public List<BillInSapDetail> findBillInSapDetailList(BillInSapDetailCriteria billInSapDetailCriteria) {
        return billInSapDetailMapper.findBillInSapDetailList(billInSapDetailCriteria);
    }

    @Override
    public void updateCarryState(BillInSapDetail billInSapDetail) {
        billInSapDetailMapper.updateCarryState(billInSapDetail);
    }

    @Override
    public int updateBillInSapDetail(BillInSapDetail billInSapDetail) {
        return billInSapDetailMapper.updateBillInSapDetail(billInSapDetail);
    }

    @Override
    public BillInSapDetail findBillInSapDetail(BillInSapDetail billInSapDetail) {
        return billInSapDetailMapper.findBillInSapDetail(billInSapDetail);
    }

    @Override
    public List<BillInSapDetail> findBillInSapDetailListByVBELN(BillInSapDetailCriteria billInSapDetailCriteria) {
        return billInSapDetailMapper.findBillInSapDetailListByVBELN(billInSapDetailCriteria);
    }
}
